<?php 
        loadHelper('captcha');
        $captcha = create_captcha();
        echo $captcha['image'];
        $_SESSION['code'] = $captcha['code'];
?>